<template>
  <div>
    <van-search
      v-model="value"
      shape="round"
      background="#4fc08d"
      placeholder="请输入搜索关键词"
    />

    <List :list="searchTab"/>
  </div>
</template>

<script>
import List from '@/components/List'
export default {
  name: 'Search',
  data() {
    return  {
      // 搜索的数据
      value:''
    }
  },
  computed: {
    // 搜索的数据
    searchTab() {
      return this.$store.getters.searchTab(this.value)
    }
  },
  components: {
    List
  }
}
</script>